package com.zlkj.pro.modular.api.model.dto;

import cn.stylefeng.roses.kernel.scanner.api.annotation.field.ChineseDescription;
import com.zlkj.pro.core.model.params.PageParam;
import lombok.*;

import javax.validation.constraints.NotBlank;

/**
 * 资源表
 *
 * @author 孙铭泽
 * @date 2022/3/25
 * @time 10:36
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class ResourcesDTO extends PageParam {
    /**
     * 主键
     */
    @ChineseDescription("主键")
    private Long id;

    /**
     * 标题
     */
    @ChineseDescription("标题")
    private String title;

    /**
     * 唯一标识，大写
     */
    @NotBlank(message = "请输入正确唯一标识，多个以逗号隔开", groups = {Identifies.class})
    @ChineseDescription("唯一标识，大写，多个以逗号隔开")
    private String identifies;

    public @interface Identifies {
    }
}